/**
 *  @author: Paulo Faria Reis
 *  @started: Mar 23, 2012
 */
package networkoperations;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import controller.DataStore;

/**
 * @author Paulo Faria Reis
 *
 */
public class MulticastReceiver implements Runnable {
   DataStore dataStorage;

   public MulticastReceiver(DataStore data) {
	dataStorage = data;
   }

   @Override
   public void run() {

	
	
	
   }

   
   
   long byteToLong(byte[] src) {
	ByteBuffer bb = ByteBuffer.allocate(8);
	bb.order(ByteOrder.LITTLE_ENDIAN);
	return bb.getLong();
   }
   
   byte[] swap(byte[] src) {
	ByteBuffer bb = ByteBuffer.allocate(1024);
	bb.order(ByteOrder.LITTLE_ENDIAN);
	bb.put(src);
	return bb.array();
   }  
   

}
